/**
 * Created by leezhenbo on 15/9/11.
 */
package com.ryot.utils {
public class DateUtil {
    public function DateUtil() {
    }

    public static function dateString():String{
        var now:Date = new Date();
        var yy:String = now.getFullYear().toString();
        var MM:String = formatDateCount(now.getMonth()+1);
        var dd:String = formatDateCount(now.getDate())
        var hh:String = formatDateCount(now.getHours());
        var mm:String = formatDateCount(now.getMinutes());
        var ss:String = formatDateCount(now.getSeconds());
        return yy + MM + dd + hh + mm + ss;
    }

    private static function formatDateCount(num:Number):String{
        return num < 10 ? ('0'+num).toString() : num.toString();
    }
}
}
